package Test.ThirdTwo;

/**
 * 实现Print接口的测试类1
 */
public class PrintTestOne implements Print {
    /**
     * x y为坐标点
     */
    private int x;
    private int y;

    public PrintTestOne(){
        x=0;
        y=0;
    }

    public PrintTestOne(int x,int y){
        this.x=x;
        this.y=y;
    }

    /**
     * 实现接口print()方法用于输出x和y的值
     */
    @Override
    public void print(){
        System.out.println("X:"+x+" Y:"+y);
    }


    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

}
